Skip to content

Fix preview package publish job by checking out repository before setup-node#1791

Closed
marcoroth with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-publish-preview-packages
Closed

Fix preview package publish job by checking out repository before setup-node#1791
marcoroth with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-publish-preview-packages

Conversation

Copilot AI commented Jun 7, 2026

Copy link
Copy Markdown

The Publish preview packages Actions job failed before artifact publishing because actions/setup-node was configured with node-version-file: ".node-version" while the repository was never checked out in that job. As a result, .node-version was missing at runtime.

  • Workflow fix (.github/workflows/javascript.yml)

    • Added actions/checkout@v4 as the first step in the preview job.
    • Kept existing publish flow unchanged (artifact download + pkg-pr-new publish invocation).
  • Why this resolves the failure

    • Ensures .node-version exists in the workspace before setup-node reads it.
preview:
  steps:
    - uses: actions/checkout@v4
    - uses: actions/setup-node@v4
      with:
        node-version-file: ".node-version"

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'Publish preview packages' Fix preview package publish job by checking out repository before setup-node Jun 7, 2026
Copilot AI requested a review from marcoroth June 7, 2026 13:07
@marcoroth marcoroth closed this Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants